<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>操作成功</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

<script type="text/javascript">
function closewindow()
{
	if(window.opener)
	{
		var forms = window.opener.document.forms;
		if(forms != null && forms.length > 0)
		{
			window.opener.document.forms[0].submit();
			
		}
	}
	window.close();
}
function clock(){
	i = i -1;
	if(document.getElementById("info")){
		document.getElementById("info").innerHTML = "本窗口将在"+i+"秒后自动关闭";
	}
	if(i > 0)
		setTimeout("clock();",1000);
	else
		closewindow();
}
var i = 4;
clock();
</script>
</head>

<body>
<div class="success" ID="oDiv" STYLE="position:absolute; top:expression(document.body.clientHeight/2- oDiv.offsetHeight/2); left:expression(document.body.clientWidth/2 - oDiv.offsetWidth/2);">
<center>
	操作成功！<p>
	<s:property value="successString"/>
	<div id="info">本窗口将在3秒后自动关闭</div>
	<a href="javascript:closewindow();" style="margin-top:20px;"><img
						src="<%= request.getContextPath() %>/images/closebg.gif" alt="关闭窗口" style="border: none;" />
				</a>
</center>
</div>
</body>
</html>
